#include "screencapture.h"

ScreenCapture::ScreenCapture(QObject *parent)
    :QObject(parent)
    , m_x(0), m_y(0), m_width(0), m_height(0)
{

}

QByteArray ScreenCapture::getFramebuffer()
{
    int size = getFramebufferSize();
    QByteArray data(size, 0);
    getFramebuffer(data.data());
    return data;
}

void ScreenCapture::getFramebuffer(char* /*data*/)
{

}

AVPixelFormat ScreenCapture::pixelFormat()
{
    return AVPixelFormat::AV_PIX_FMT_NONE;
}

int ScreenCapture::x()
{
    return m_x;
}

int ScreenCapture::y()
{
    return m_y;
}

int ScreenCapture::width()
{
    return m_width;
}

int ScreenCapture::height()
{
    return m_height;
}

void ScreenCapture::postMouseEvent(int /*button*/, bool /*isPress*/, int /*x*/,int /*y*/)
{

}

void ScreenCapture::postKeyEvent(int /*key*/, bool /*isPress*/)
{

}

void ScreenCapture::postWheelEvent(int /*delta*/)
{

}
